<?php		
echo $javascript->codeBlock("
	$(document).ready(function(){
		$('#calendar').fullCalendar({
			monthNames: ['".__d('calendar','Styczeń',true)."', '".__d('calendar','Luty',true)."','".__d('calendar','Marzec',true)."','".__d('calendar','Kwiecień',true)."','".__d('calendar','Maj',true)."','".__d('calendar','Czerwiec',true)."','".__d('calendar','Lipiec',true)."','".__d('calendar','Sierpień',true)."','".__d('calendar','Wrzesień',true)."','".__d('calendar','Październik',true)."','".__d('calendar','Listopad',true)."','".__d('calendar','Grudzień',true)."'],
			dayNamesShort: ['".__d('calendar','Nie',true)."','".__d('calendar','Pon',true)."','".__d('calendar','Wto',true)."','".__d('calendar','Śro',true)."','".__d('calendar','Czw',true)."','".__d('calendar','Pią',true)."','".__d('calendar','Sob',true)."'],
			firstDay: 1,
			editable: false,
			
			events: '/pol/calendar/news/events',
			
			eventDrop: function(event, delta) {
				//alert(event.title + ' was moved ' + delta + ' days' + '(should probably update your database)');
			},
			
			loading: function(bool) {
				if (bool) $('#loading').show();
				else $('#loading').hide();
			}
			
		});
	});		
",$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));
?>
<h2><?php echo __d('calendar','Kalendarz',true)?></h2>
<div id="calendar"> </div>
<?php echo $html->link(__d('calendar','Pełna lista nowości',true),array('plugin'=>'calendar','controller'=>'news','action'=>'display'))?>